package com.example.fileserver_API.Interfaces.IService;

import com.example.fileserver_API.Entity.PO.uploadpictures;
import com.example.fileserver_API.Entity.VO.APIResult;
import org.springframework.core.io.Resource;
import org.springframework.http.ResponseEntity;

import java.util.Base64;

public interface IGetFileService {

    /**
     * 获取图片上传信息
     * @param guid 图片记录表的唯一标识符
     * @return uploadpictures
     */
    uploadpictures GetImg(String guid) throws Exception;

    /**
     * 删除某个文件
     * @param guid 文件guid
     * @return APIResult
     */
    APIResult DeleteFile(String guid);

    /**
     * 获取视频（不分片）
     * @param guid 图片guid
     * @return APIResult
     */
    ResponseEntity<Resource> GetVideo(String guid);
}
